package com.fulu.game.bi.service.impl;

import com.fulu.game.bi.hbase.HBaseCheckDataDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Service
public class CheckDataServiceImpl {

    @Autowired
    private HBaseCheckDataDAO hBaseCheckDataDAO;


    public Integer count(String statDate, String tableName) {
        return Optional.ofNullable(hBaseCheckDataDAO.count(statDate, tableName)).orElse(0);
    }

    public List<String> tableName() {
        return hBaseCheckDataDAO.tableName();
    }

}
